<{include file ="header.tpl"}>
<{include file ="navibar.tpl"}>
<{include file ="sidebar.tpl"}>
<!-- START 以上内容不需更改，保证该TPL页内的标签匹配即可 -->
<{$osadmin_action_alert}>
<{$osadmin_quick_note}>

<div class="well">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#home" data-toggle="tab">产品出库</a></li>
    </ul>

    <div id="myTabContent" class="tab-content">
        <div class="tab-pane active in" id="home">

            <form id="tab" method="post" action="products_due.php">
                <{if $_GET.products_id}>
                <label>产品model号</label>
            <input type="text" name="model" value="<{$_GET.products_model}>" class="input-xlarge" readonly>
                <label>产品数量</label>
            <input type="text" name="num" value="" class="input-xlarge"
                   autofocus="true" placeholder="请仔细核对数量">

                <label>出库类型</label>
            <input type="radio" name="due_status" value="1" class="input-xlarge" checked
                   autofocus="true">正常出库 &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" name="due_status" value="2" class="input-xlarge"
                   autofocus="true">换货再出库 &nbsp;&nbsp;&nbsp;&nbsp;
                <label>是否评估</label>
            <input type="radio" name="pg" value="1" class="input-xlarge" checked
                   autofocus="true">是 &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" name="pg" value="0" class="input-xlarge"
                   autofocus="true">否 &nbsp;&nbsp;&nbsp;&nbsp;

            <input type="hidden" name="products_id" value="<{$_GET.products_id}>">
                <{else}>
                <label>产品model号</label>
            <input type="text" name="model" id="DropDownTimezone" class="input-xlarge"/>
                <label>产品数量</label>
            <input type="text" name="num" value="" class="input-xlarge"
                   autofocus="true" placeholder="请仔细核对数量">

                <label>出库类型</label>
            <input type="radio" name="due_status" value="1" class="input-xlarge" checked
                   autofocus="true">正常出库 &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" name="due_status" value="2" class="input-xlarge"
                   autofocus="true">换货再出库 &nbsp;&nbsp;&nbsp;&nbsp;
                <label>是否评估</label>
            <input type="radio" name="pg" value="1" class="input-xlarge" checked
                   autofocus="true">是 &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="radio" name="pg" value="0" class="input-xlarge"
                   autofocus="true">否 &nbsp;&nbsp;&nbsp;&nbsp;
                <{/if}>
                <div class="btn-toolbar">
                    <button type="submit" class="btn btn-primary"><strong>提交</strong></button>
                </div>
            </form>
        </div>
    </div>
</div>

<script>
    $(function () {
        <{if $modelOptions}>
        var data = <{$modelOptions}>;
        <{else}>
        var data = [];
        <{/if}>

        $("#DropDownTimezone").autocomplete({
            source: data
        });
    });
</script>
<!-- END 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
<{include file="footer.tpl" }>